# coding:utf-8
# __author__ = yuan
# __time__ = 2020/4/24
# __file__ = util
# __desc__ =
import numpy as np
import matplotlib.pyplot as plt

def plot(mt:np.ndarray,labels):
    plt.matshow(mt)
    plt.colorbar()
    plt.xlabel("预测类型")
    plt.ylabel("真实类型")
    plt.xticks(np.arange(mt.shape[1]),labels)
    plt.yticks(np.arange(mt.shape[1]),labels)
    plt.show()